package com.vogue.supplymall.shop.domain.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Select;

import com.vogue.supplymall.shop.domain.model.ProductAttrvalue;

/**
 * @Aouthor: zhangliang
 * @Date: Create in 2017-12-14
 */
public interface ProductAttrvalueDao extends BaseDao<ProductAttrvalue, Long> {
	 /**
     * 根据syscodeid、typeid、matchid、productid得到品项属性分类的值
     */
	public List<ProductAttrvalue> findProductAttrvalueBySTMP(Long sysCodeId,int typeId,String matchId,Long productId);
	/**
	 * 根据attrplanid找到对应的product_attrvalue中的matchId
	 */
	public List<Map<String, Object>> findMatchIdByAttrplanId(Long attrplanId);
	/**
	 * 根据syscodeid、productid、matchIds得到product_attrvalue的id
	 */
	public List<Map<String, Object>> findIdBySPM(Long syscodeId,Long productId,String matchIds);
	
}
